<template>
  ...
</template>
<script setup lang="ts">
/**
plugins - 工具：

import { getCurrentInstance } from 'vue'
import ComponentHat from '@/plugins/type'
const { $typing, $modal, $download, $cache, $bus,$store } = <ComponentHat>getCurrentInstance().proxy
 */
import { getCurrentInstance, ref } from 'vue'
import ComponentHat from '@/plugins/type'
const { $typing, $store, $API } = <ComponentHat>getCurrentInstance().proxy
// 测试Store
const menuStore = $store.menu
// 测试API
$API.user.login({ username: 'admin', password: '123456' }).then((result) => {
  if (result.success) {
    console.log('请求成功,token=', result.data.token)
  }
})
</script>
<style scoped lang="scss"></style>
